package com.hwadee.property.util;

public class ErrorCodes {

    // 通用错误码
    public static final int SUCCESS = 200;
    public static final int INVALID_INPUT = 400;
    public static final int SERVER_ERROR = 500;

    // 业务错误码
    public static final int ALREADY_EXISTS = 1001; // 已存在，不可重复
    public static final int NOT_FOUND = 1002; // 未找到，id不存在

    // 权限错误码
    public static final int UNAUTHORIZED = 2001; // 未授权
    public static final int FORBIDDEN = 2002; // 禁止访问
    public static final int OUTDATED = 2003; // 已过期

    // 数据库错误码
    public static final int DATABASE_ERROR = 3001; // 数据库操作失败

    // 参数错误码
    public static final int INVALID_PARAMETER = 4001; // 参数无效

    // 其他错误码
    public static final int UNKNOWN_ERROR = 9999; // 未知错误
}
